package com.rent.collectrent.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 核销明细表
 * @author news
 * *@date 2025/9/28
 */
@Data
@TableName("write_off_detail")
public class WriteOffDetail implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 银行收款ID,; */
    @TableField("receipt_id")
    private Long receiptId;

    /** 租金计划ID,; */
    @TableField("rent_plan_id")
    private Long rentPlanId;

    /** 核销金额,; */
    @TableField("write_off_amount")
    private BigDecimal writeOffAmount;

    /** 核销利息金额,; */
    @TableField("write_off_interest")
    private BigDecimal writeOffInterest;

    /** 核销本金金额,; */
    @TableField("write_off_principal")
    private BigDecimal writeOffPrincipal;

    /** 核销日期,; */
    @TableField("write_off_date")
    private Date writeOffDate;

    /** 批次号,; */
    @TableField("batch_no")
    private String batchNo;

    @TableField("create_time")
    private Date createTime;
}
